package project.base.common.config

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor
import org.mybatis.spring.annotation.MapperScan
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration


/**
 * mybatis-plus 配置
 * @author 三味
 * @since 2022/3/2 20:45
 */
@Configuration
@MapperScan("project.base.dao")
open class MybatisPlusConfig {
    /**
     * 分页插件
     */
    @Bean
    open fun paginationInterceptor(): PaginationInterceptor? {
        return PaginationInterceptor()
    }
}
